export const actions = {  // 异步操作
  setNum(content, payload) {
    return new Promise(resolve => {
      setTimeout(() => {
        content.commit('setNumber', {number: payload.number});
        resolve();
      }, 1000);
    })
  }

}
